<div class="flexform">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
                'id' => 'poduct-category-form',
                'enableAjaxValidation' => false
            ));
    ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'parentid'); ?>
        <?php echo $form->dropDownList($model, 'parentid',$model->showAllSelectCategory()); ?>
        <?php echo $form->error($model, 'parentid', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'title'); ?>
        <?php echo $form->textField($model, 'title', array('size' => 60, 'maxlength' => 100)); ?>
        <?php echo $form->error($model, 'title', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    
    <div class="row">
        <?php echo $form->labelEx($model, 'state'); ?>
        <?php echo $form->dropDownList($model, 'state',$model->state_array); ?>
        <?php echo $form->error($model, 'state', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'titlenote'); ?>
        <?php echo $form->textField($model, 'titlenote', array('size' => 60, 'maxlength' => 225)); ?>
        <?php echo $form->error($model, 'titlenote', array('class' => 'form-msg-error-advanced')); ?>
    </div>
    <div class="action">
        <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>
